package com.remoting.core.response;

import com.remoting.api.expression.ExpressionParser;
import com.remoting.api.response.ResponseHandler;

/**
 * 默认响应处理器
 * <p>说明:</p>
 * <li></li>
 *
 * @Author DuanYong
 * @Since 2019/5/10 16:07
 * @Version 1.0
 */
public class DefaultResponseHandler implements ResponseHandler {
    /** 表达式解析 */
    private ExpressionParser expressionParser;
    @Override
    public ResponseHandler init(ExpressionParser expressionParser) {
        this.expressionParser = expressionParser;
        return this;
    }

    @Override
    public <T> T handle(String response) {
        return (T) response;
    }
}
